package com.dfbz.demo_第七题;

/**
 * @author lscl
 * @version 1.0
 * @intro:
 */
public class Demo03_AutoClouseable {
    public static void main(String[] args) {


        try (
                A a = new A();
        ) {


        } catch (Exception e) {
            e.printStackTrace();
        }

    }
}

class A implements AutoCloseable {

    public A() {
        int i = 1 / 0;
    }

    @Override
    public void close() throws Exception {
        System.out.println("close调用啦！");
    }
}
